package com.zpark.it.controller;

import com.zpark.it.service.CarouselService;
import com.zpark.it.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: CarouselController 轮播图控制类
 * @Author Charles
 * @Package com.zpark.it.controller
 * @Date 2023/7/21 11:24
 */
@RestController
@RequestMapping("/carousel")
public class CarouselController {

    @Autowired
    private CarouselService carouselService;

    @PostMapping("/list")
    public R list(){

        return carouselService.list();
    }
}
